package 多线程;

public class t1 {
    public static void main(String[] args) {
        //创建新线程
        //匿名内部类
        Thread t=new Thread(){
            @Override
            public void run(){
                System.out.println("新线程");
            }
        };
        t.start();
        System.out.println("主线程");
    }
}
